Ext.define('PrjAPLean.view.user.PassWordWin', {
    extend: 'Ext.window.Window',
    alias: 'widget.PassWordWin',

    requires: [
        'Ext.form.Panel',
        'Ext.toolbar.Toolbar',
        'Ext.button.Button',
        'Ext.form.field.ComboBox',
        'Ext.form.field.Date',
        'Ext.form.RadioGroup',
        'Ext.form.field.Radio'
    ],
    height: 180,
    width: 300,
    modal: true,
    closable: true,
    title: '修改密码',
    border:false,
    border:0,
    closeAction:'destory',
    layout: {
        type: 'fit',
        align: 'stretch'
    },
    items: [
        {
            xtype: 'form',
            paramsAsHash: true,
            border:false,
            border:0,            
            layout: 'column',
            bodyPadding: 10,
            itemId:'PassWordWinId',
            reference: 'PassWordWinform',            
            api: {
                submit: auUserContro.updateUserPassWord
            },                     
            defaults: {
                layout: 'form',
                xtype: 'container',
                style: 'width: 100%',
                border:false,
                border:0
            },
            
            items: [{
            	defaults: {
            		width:　210,
            		labelAlign:'right'
                },
                items: [
                        { 
                            xtype: 'textfield',
                            fieldLabel: '原始密码',
                            name:'password',
                            itemId:'password',
                            inputType : 'password',
                            blankText : '原始密码不能为空'  
                        },
                        { 
                            xtype: 'textfield',
                            fieldLabel: '新密码',
                            itemId:'newPassword',
                            name:'newPassword',
                            inputType : 'password',
                            blankText : '新密码不能为空',                            
                        },{
                            xtype: 'textfield',
                            fieldLabel: '确认密码',
                            itemId:'confirmpassword',
                            name: 'confirmpassword',
                            inputType: 'password' ,
                            blankText : '确认密码不能为空'
                        }
                        
                    ]
                }],    
                buttons: [
                             { 
                            	 text: '确定',
                            	 handler:'onSaveParamClick'
                            	 },
                             { 
                            	text: '取消',
                            	handler:'onCancelClick'
                             }
                        ]
        }
    ]

});